package com.gimi.cloud.jimi.manage.consumer.feign;

import com.gimi.cloud.jimi.manage.consumer.feign.hystrix.UserHystrix;
import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by luck on 2017/09/28.
 */
@FeignClient(name = "jimi-manage-service", fallback = UserHystrix.class)
public interface FeignServiceTest {

    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "userTest", method = RequestMethod.POST)
    String userTest(@RequestBody String userTest);

}
